package com.sn.author.service.dao;

import com.sn.author.common.enums.UploadTypeEnum;
import com.sn.author.domain.BaseResult;
import com.sn.author.domain.dto.ImportDTO;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author xiaom
 * @Date 2020/9/17 16:31
 * @Version 1.0.0
 * @Description <>
 **/
public interface UploadService extends BaseService{

    /**
     * 上传文件
     * @param file      文件
     * @param typeEnum  文件类型 link{com.sn.author.common.enums}
     */
    BaseResult<ImportDTO> upload(MultipartFile file, UploadTypeEnum typeEnum);

}
